x86/HVM: correct last address emulation acceptance check
authorJan Beulich <jbeulich@suse.com>
Tue, 26 Apr 2016 11:47:02 +0000 (13:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 26 Apr 2016 11:47:02 +0000 (13:47 +0200)
commit276da2785e3797885aadb135a957279b73ecf076
tree1c539fee3141d14cb6079cf9199826cf9f0ac8c4
parent36e2f084ecb631838f04d73c6f7dc6bb305d0fe4
x86/HVM: correct last address emulation acceptance check

For REPeated memory access instructions the repeat count also needs to
be considered. Utilize that "last" already takes this into account.

Also defer computing "last" until we really know we need it.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/intercept.c